home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr01 / halcn305.zip / TUTOR01.PAS < prev    next >
Pascal/Delphi Source File  |  1993-04-21  |  781b  |  25 lines

  1. program Tutor01;
  2. {$N+,E+}          {Required for floating point number handling}
  3. uses
  4.    CRT,
  5.    GSOB_DBF,
  6.    GSOB_VAR;
  7. var
  8.    MyFile  : GSO_dBaseFld;
  9.  
  10. begin
  11.    ClrScr;
  12.    MyFile.Init('TUTOR1');          {Initialize object using the dBase III}
  13.                                    {file TUTOR1.  DBF Extension assumed}
  14.    MyFile.Open;                    {Open the object's file}
  15.    MyFile.GetRec(Top_Record);      {Get the first record in the file}
  16.    while not MyFile.File_EOF do    {Repeat until end-of-file}
  17.    begin
  18.       writeln(MyFile.FieldGet('LASTNAME'),' ',
  19.               MyFile.FieldGet('FIRSTNAME'),'  ',
  20.               MyFile.FieldGet('BIRTHDATE'));
  21.       MyFile.GetRec(Next_Record);  {Get the next sequential record}
  22.    end;
  23.    MyFile.Close;
  24. end.
  25.